<h1>Listing generators</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Ip address</th>
    <th>Disable</th>
  </tr>

<% for generator in @generators %>
  <tr>
    <td><%=h generator.name %></td>
    <td><%=h generator.ip_address %></td>
    <td><%=h generator.disable %></td>
    <td><%= link_to 'Show', generator %></td>
    <td><%= link_to 'Edit', edit_generator_path(generator) %></td>
    <td><%= link_to 'Destroy', generator, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New generator', new_generator_path %>
